package com.cafe.mcp.tool;

import org.springframework.ai.tool.annotation.Tool;

public class MathTool {

    @Tool(description = "两个数字相加")
    public Integer addNumbers(Integer a, Integer b) {
        return a + b;
    }

    @Tool(description = "两个数字相减")
    public Integer subtractNumbers(Integer a, Integer b) {
        return a - b;
    }

    @Tool(description = "两个数字相乘")
    public Integer multiplyNumbers(Integer a, Integer b) {
        return a * b;
    }

    @Tool(description = "两个数字相除")
    public Double divideNumbers(Integer a, Integer b) {
        return (double) a / b;
    }
}
